import 'reflect-metadata'
import { DataSource } from 'typeorm'
import { Attr } from '@/model/Attr'
import { User } from '@/model/User'
import { Group } from '@/model/Group'

const dataSource = new DataSource({
    type: 'mysql',
    host: 'localhost',
    port: 3306,
    username: 'root',
    password: 'Q<;Of<fk,25Y',
    database: 'warehouse2',
    entities: [Attr, User, Group],
    synchronize: true,
    logging: false
})

export {
    dataSource
}